package com.union.vehicleassistant.util;

import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattService;

import com.clj.fastble.data.BleDevice;

import java.util.List;

public interface BlueToothStateChangeListener {

    void onScanning(BleDevice bleDevice);

    void onScanFinish(List<BleDevice> scanResultList);

    void onStartConnect();

    void onDisConnect();

    default void onConnectFail() {
    }

    void onConnectSuccess(BleDevice bleDevice, BluetoothGatt gatt, int status);

    void onOpenNotify(BluetoothGattService service, String uuidNotify);

    void onOpenNotifyFailure();

    void onReceiveCharacter(String receivedData);

    void onReceiveCharacter(byte[] receivedData);


}
